package com.zbl.zblproject.contract.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zbl.zblproject.contract.entity.Contract;
import com.zbl.zblproject.contract.entity.Rebates;


import java.util.List;

/**
 * @author youlanqiang
 * @version 1.0
 * @date 2019/3/14
 */
public interface ContractService {


    boolean addContract(Contract contract, List<Rebates> rebates);

    boolean updateContract(Contract contract, List<Rebates> rebates);

    boolean deleteContract(Integer id);

    boolean deleteContract(List<Integer> list);

    IPage<Contract> selectPage(IPage<Contract> page, String start, String end, String search);
}
